﻿using Qiniu.RS;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace CJAtech.BBS.Web.Controllers
{
    public class QiNiuCoreController : BaseController
    {
        public ActionResult GetUpLoadToken()
        {
            PutPolicy objPutPolicy = new PutPolicy("cj-bu5-benz");
            objPutPolicy.SaveKey = Guid.NewGuid().ToString().Replace("-", "");
            return Jsonp(objPutPolicy.Token(), JsonRequestBehavior.AllowGet);
        }
    }
}
